﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class RoleData
{
    public string id;

    public string roleid;

    public int hp;

    public int attack;

    public int deface;

    public int exp;

    public int level;

    public int finishMission;

    public int dungeonLevel;

    public float[] location;

    public Dictionary<int, string> equips;

    public string saveTime;
    public RoleData()
    {
        equips = new Dictionary<int, string>();
        location = new float[3];
    }

    public void ChangeAttr(string attr, int v)
    {
        switch (attr)
        {
            case "attack":
                attack += v;
                break;
            case "hp":
                hp += v;
                break;
        }
    }
}
